package org.quality4spl.fm.tests;

import static org.junit.Assert.*;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.resource.ResourceSet;
import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
import org.eclipse.emf.ecore.xmi.impl.EcoreResourceFactoryImpl;
import org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl;
import org.eclipse.emf.ecore.xmi.impl.XMLResourceFactoryImpl;
import org.junit.Before;
import org.junit.Test;
import org.quality4spl.fm.CVMModelWrapper;
import org.quality4spl.fm.cvm.CvmPackage;
import org.quality4spl.fm.cvm.impl.CvmFactoryImpl;

public class TestCVMModelWrapper {

	@Test
	public void testCVMModelWrapper(){
		CVMModelWrapper model = new CVMModelWrapper(
		  URI.createURI("../org.quality4spl.example/src/featuremodel/eHealthSPL.cvm"));
		System.out.println("selected features: "+ model.getSelectedFeatures());
		assertTrue(model.getSelectedFeatures().contains("SessionManager"));
	}
	
}
